//
//  ExamUpdateQuestionManager.m
//  JPWords
//
//  Created by 梁淑婷 on 2024/7/15.
//

#import "ExamUpdateQuestionManager.h"

@implementation ExamUpdateQuestionManager

-(NSString *)methodName{
    return @"/system/exam/record/app/updateQuestion";
}

-(JPAPIManagerRequestType)requestType{
    return JPAPIManagerRequestTypePOST;
}

-(NSDictionary *)paramsForApi:(JPAPIBaseManager *)manager{
    NSMutableDictionary *dict = @{}.mutableCopy;
    dict[@"questionId"] = self.questionId;
    NSString *userId = [[NSUserDefaults standardUserDefaults]objectForKey:@"userId"];
    dict[@"userId"] = userId;
    dict[@"answer"] = self.answer;
    dict[@"type"] = self.type;
    dict[@"isDone"] = self.isDone;
    return dict;
}

@end
